{extend name="layout:base" /}

{block name="main"}
<div class="path">
    <p><b>{:lng('Copying')}</b></p>
    <p class="break-word">
        <strong>{:lng('Source path')}:</strong> <?php echo fm_enc(fm_convert_win(FM_ROOT_PATH . '/' . $copy)) ?><br>
        <strong>{:lng('Destination folder')}:</strong> <?php echo fm_enc(fm_convert_win(FM_ROOT_PATH . '/' . FM_PATH)) ?>
    </p>
    <p>
        <b><a href="{:addon_url('admin/index/copy', ['p' => FM_PATH, 'copy' => $copy, 'finish' => 1])}"><i class="fa fa-check-circle"></i> {:lng('Copy')}</a></b> &nbsp;
        <b><a href="{:addon_url('admin/index/copy', ['p' => FM_PATH, 'copy' => $copy, 'finish' => 1, 'move' => 1])}"><i class="fa fa-check-circle"></i> {:lng('Move')}</a></b> &nbsp;
        <b><a href="{:addon_url('admin/index/index', ['p' => ''])}" class="text-danger"><i class="fa fa-times-circle"></i> {:lng('Cancel')}</a></b>
    </p>
    <p><i><?php echo lng('Select folder') ?></i></p>
    <ul class="folders break-word">
        <?php  if ($parent !== false) {  ?>
        <li><a href="{:addon_url('admin/index/copy', ['p' => $parent, 'copy' => $copy])}"><i class="fa fa-chevron-circle-left"></i> ..</a></li>
        <?php } foreach ($folders as $f) { ?>
        <li><a href="{:addon_url('admin/index/copy', ['p' => trim(FM_PATH.'/'.$f, '/'), 'copy' => $copy])}"><i class="fa fa-folder-o"></i> {:fm_convert_win($f)}</a></li>
        <?php } ?>
    </ul>
</div>
{/block}